const cryptp = require('crypto')

// 定义钥匙
const SECRET_KEY = 'GJiol_798.3$'

// 定义加密的规则

const md5 = (content) => {
  return cryptp.createHash('md5').update(content).digest('hex')
}

// 定义加密的函数

const getPassword = (password) => {
  return md5(`password=${password}&secret_key=${SECRET_KEY}`)
}

// console.log(getPassword('123'))

module.exports = {
  getPassword
}